<?php

/**
 * Date: 2015/9/29
 * Time: 19:56
 */
class Callback extends BZ_Controller
{

    public function _init()
    {
        $this->load->model('express_record_model', 'express_record');
    }

    public function express()
    {
        $postData = $this->input->post();
        if (! empty($postData)) {
            $param = json_decode($postData['param']);
            $result = $this->express_record->updateBak($param->lastResult);
            if ($result) {
                echo json_encode(array(
                    "result" => "true",
                    "returnCode" => "200",
                    "message" => "成功"
                ));
            }
        }
    }
}